#include "Entity_i.h"


Entity_i::~Entity_i(){}

Entity_i::Entity_i(Word_i wd, char* def){
	
	word.setCategoryValue(*(wd.getCategoryValue()));
	word.setPropertyType(*(wd.getPropertyType()));
	word.setTerm(CORBA::string_dup(wd.getTerm()));	
	//word = wd;
	definition = CORBA::string_dup(def);
}

Word_ptr Entity_i::myEntry(){
	//return (Word_ptr)&word;

	return Dict::Word::_duplicate(word._this());
}

char* Entity_i::myDefinition(){
	return CORBA::string_dup(definition);	
}

void Entity_i::setDefinition(char * def){
	definition = def;
}




